libxc: allow empty memory nodes in vNUMA
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 14 Aug 2015 16:18:52 +0000 (12:18 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Sun, 16 Aug 2015 06:49:59 +0000 (07:49 +0100)
commitb56892f5a9165397fcff0b0e45b9ee181cbb52c8
tree24a8e6a433585e7068e2fab44cfc34f43c2991a8
parent6a249a118ef215d6eff4c4fec81a69298365a914
libxc: allow empty memory nodes in vNUMA

The test for 'nr_vmemranges < nr_vnodes' in xc_domain_setvnuma() was
originally writtten with the idea that number of memory ranges would
at least be equal to number of nodes.

We may want to specify nodes with no memory, however, and thus this
check should be removed.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_domain.c